import React, { Component } from "react";
import "./vehicleno.less";

class VehicleNo extends Component {
  constructor() {
    super();
    this.state = {
      colorType: ["yellow", "blue", "green"]
    };
  }
  render() {
    return (
      <div
        className={[
          `font-small j-vehicle-no ${
            this.state.colorType[this.props.carObj.color - 1]
          }`
        ]}
      >
        {this.props.carObj.no}
      </div>
    );
  }
}

export default VehicleNo;
